package com.patterns.factory.abstracts;

import com.patterns.factory.pojo.Blue;
import com.patterns.factory.pojo.Color;
import com.patterns.factory.pojo.Shape;
import com.patterns.factory.pojo.Square;

/**
 * @author fwj
 * @date 2020/12/8 17:53
 **/
public class SquareFactory implements AbstractFactory {
    public Shape createShape() {
        return new Square();
    }

    public Color createColor() {
        return new Blue();
    }
}
